﻿using MediatR;
using SmartProduction.ErrorCode;

namespace SmartProduction.Write.API.Application.Commands.work_SalesOrderCommand
{
    /// <summary>
    /// 销售订单新建命令
    /// </summary>
    public class work_SalesOrderCreateCommand : IRequest<APIResult<object>>
    {
        /// <summary>
        /// 销售单号
        /// </summary>
        public string OrderCode { get; set; } // XSDD264846

        /// <summary>
        /// 销售订单主题
        /// </summary>
        public string OrderSubject { get; set; } // 新产品销售订单0051

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; } // 重要客户

        /// <summary>
        /// 销售日期
        /// </summary>
        public DateTime SalesDate { get; set; } // 2022-06-07

        /// <summary>
        /// 总金额
        /// </summary>
        public decimal TotalAmount { get; set; } // 50,000.00

        /// <summary>
        /// 已开票金额
        /// </summary>
        public decimal InvoicedAmount { get; set; } // 10,000.00

        /// <summary>
        /// 开票金额
        /// </summary>
        public decimal CurrentInvoiceAmount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string SalesPerson { get; set; }

        /// <summary>
        /// 出库状态
        /// </summary>
        public string ChukuStatu { get; set; } = "未完成";
    }
}
